﻿using RuoVea.GoFastdfs.Entity;
using RuoVea.GoFastdfs.Entity.Context;
using RuoVea.GoFastdfs.Service.Inserface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RuoVea.GoFastdfs.Service
{
    public class SettingService: ISettingService
    {
        RuoVeaContext _context;
        public SettingService(RuoVeaContext context)
        {
            _context = context;
        }

        public Boolean editUser(UserEntity user)
        {
            try
            {
                _context.UserEntitys.Update(user);
                _context.SaveChanges();
                return true;
            }
            catch
            {
                return false;
            }
        }
    }
}
